package net.roseparadise.model;
// default package

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;


/**
 * Guest entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="tguest"
    ,catalog="studio"
)

public class Guest  implements java.io.Serializable {


    // Fields    

     private Integer id;
     private String name;
     private String telephone;
     private String qq;
     private String msn;
     private String email;
     private String createdate;


    // Constructors

    /** default constructor */
    public Guest() {
    }

	/** minimal constructor */
    public Guest(String name, String telephone, String createdate) {
        this.name = name;
        this.telephone = telephone;
        this.createdate = createdate;
    }
    
    /** full constructor */
    public Guest(String name, String telephone, String qq, String msn, String email, String createdate) {
        this.name = name;
        this.telephone = telephone;
        this.qq = qq;
        this.msn = msn;
        this.email = email;
        this.createdate = createdate;
    }

   
    // Property accessors
    @GenericGenerator(name="generator", strategy="increment")@Id @GeneratedValue(generator="generator")
    
    @Column(name="ID", unique=true, nullable=false)

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    
    @Column(name="NAME", nullable=false, length=30)

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    @Column(name="TELEPHONE", nullable=false, length=12)

    public String getTelephone() {
        return this.telephone;
    }
    
    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }
    
    @Column(name="QQ", length=15)

    public String getQq() {
        return this.qq;
    }
    
    public void setQq(String qq) {
        this.qq = qq;
    }
    
    @Column(name="MSN", length=30)

    public String getMsn() {
        return this.msn;
    }
    
    public void setMsn(String msn) {
        this.msn = msn;
    }
    
    @Column(name="EMAIL", length=30)

    public String getEmail() {
        return this.email;
    }
    
    public void setEmail(String email) {
        this.email = email;
    }
    
    @Column(name="CREATEDATE", nullable=false, length=14)

    public String getCreatedate() {
        return this.createdate;
    }
    
    public void setCreatedate(String createdate) {
        this.createdate = createdate;
    }
   








}